package com.eveinfo.tools;

import com.eveinfo.api.asset.AssetParser;
import com.eveinfo.api.balance.AccountBalanceParser;
import com.eveinfo.api.character.list.CharacterListParser;
import com.eveinfo.api.character.sheet.SheetParser;
import com.eveinfo.api.character.skillqueue.SkillQueueParser;
import com.eveinfo.api.character.skilltraining.SkillTrainingParser;
import com.eveinfo.api.transaction.TransactionParser;
import com.eveinfo.api.utils.certificates.CertificatesParser;
import com.eveinfo.api.utils.nametoid.NameToIdParser;
import com.eveinfo.api.utils.skilllist.SkillsParser;

public class Parsers {

	public static void deleteCache(){
		if(AssetParser.isInstancier()){
			AssetParser.getInstance().clearCache();
		}
		if(AccountBalanceParser.isInstancier()){
			AccountBalanceParser.getInstance().clearCache();
		}
		if(CharacterListParser.isInstancier()){
			CharacterListParser.getInstance().clearCache();
		}
		if(SheetParser.isInstancier()){
			SheetParser.getInstance().clearCache();
		}
		if(SkillQueueParser.isInstancier()){
			SkillQueueParser.getInstance().clearCache();
		}
		if(SkillTrainingParser.isInstancier()){
			SkillTrainingParser.getInstance().clearCache();
		}
		if(TransactionParser.isInstancier()){
			TransactionParser.getInstance().clearCache();
		}
		if(CertificatesParser.isInstancier()){
			CertificatesParser.getInstance().clearCache();
		}
		if(NameToIdParser.isInstancier()){
			NameToIdParser.getInstance().clearCache();
		}
		if(SkillsParser.isInstancier()){
			SkillsParser.getInstance().clearCache();
		}
	}
	
}
